package com.lansea.wms.model;

import com.lansea.wms.entity.ValidClass;
import com.lansea.wms.model.base.BaseUser;
import com.lansea.wms.util.DateUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.stereotype.Repository;

import javax.validation.constraints.Min;
import java.util.List;
@Data
@Repository
@ApiModel(value = "Role", description = "角色")
public class Role extends BaseUser {

    @Min(value = 1, message = "id非法", groups = {ValidClass.EditForm.class})
    private Integer id;
    @ApiModelProperty("名称长度为")
    private String name;
    @ApiModelProperty("备注长度为")
    private String remark;

    private List<Auth> auths;



}
